from src.agro_5downscaling import AGRO5DownscalingPoint5Degree
from src.utils.config_utils import DataConfigParser
from src.utils.loghelper import logHelper

file_path_token = "fileConfig"
input_file_path_token = "InputFilePath"
output_file_path_token = "OutputFilePath"


class DownScaling5Manager(object):

    _input_file_path = None
    _output_file_path = None

    def __init__(self):
        logHelper.set_log()
        self._input_file_path = DataConfigParser().get_data_configuration(file_path_token, input_file_path_token)
        self._output_file_path = DataConfigParser().get_data_configuration(file_path_token, output_file_path_token)

    def process(self):
        agro_5_down_scaling = AGRO5DownscalingPoint5Degree()
        agro_5_down_scaling.process(self._input_file_path, self._output_file_path)


def main_func():
    down_scaling_manager = DownScaling5Manager()
    down_scaling_manager.process()


if __name__ == '__main__':
    main_func()